package com.hu.bgp.client.presenter;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.hu.bgp.client.place.Place;
import com.hu.bgp.framework.clientapi.GameID;
import com.hu.bgp.framework.clientapi.util.Firebug;

public class BoardgamePlace extends Place
{
	public static final String PLACEID = "game";
	private static final String GID = "gid";

	private GameID gameID;
	
	public BoardgamePlace(String state) {
		super(state);
		gameID = new GameID(super.getAttributes().get(GID),true);
	}
	
	public BoardgamePlace()
	{
		super("");
	}

	
	public GameID getGameID()
	{
		return gameID;
	}

	public void setGameID(GameID gameID)
	{
		this.gameID = gameID;
	}
	
	
	@Override
	public String asURI() {
		// TODO Auto-generated method stub
		return PLACEID + constants.attributesSeperator() + 
				 GID + constants.keyValuaSeperator() + gameID;
	}
	


}
